<link rel="stylesheet" type="text/css" href="/public/static/css/index.css" />
<script src="/public/static/js/synchro.js"></script>
<{include file="tpl/filter.tpl"}>

<div>
	<input class="label-success pull-left" type="checkbox" id="all" />&nbsp;<span id="aa">全选</span>
	<a href="javascript:;" id="synchro" name="ac_synchro" style="margin-right: 2PX;" class="btn" data-url="?r=activity/synchro">同步</a>
	<!--<a href="javascript:;" id="active_open" name="active_open" style="margin-right: 2PX;" class="btn" data-url="?r=activity/updateStatus">重新开启</a>-->
	<{if $is_close == 1}>
	<a href="javascript:;" id="active_close" name="active_close" style="margin-right: 2PX;" class="btn" data-url="?r=activity/updateStatus">关闭</a>
	<a href="javascript:;" id="active_cancle" name="active_cancle" style="margin-right: 2PX;" class="btn" data-url="?r=activity/updateStatus">作废</a>
	<{/if}>
    <a class="pull-right" style="background: #008678; color: #fff; padding: 2px 8px; margin-bottom: 12px; border-radius: 5px;" href="<{PubFunc::buildUrl('/oss/?r=activity/add')}>">
        <i class="fa fa-plus"></i> 添加
    </a>
</div>

<{include file="tpl/grid.tpl"}>
	
<script>
function call_back(msg){
//  layer.msg('操作成功', {icon: 1,time: 3000});
//  layer.closeAll('iframe');
//  window.location.reload()
    layer.alert(msg, {
		skin: 'layui-layer-molv' //样式类名
		,closeBtn: 0
	}, function(){
		layer.closeAll('iframe');
		 window.location.reload();
	});	

}
</script>